package excel;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.Map;

/**
 * @project: guli_parent
 * @ClassName: ExcelListenner
 * @author: dq
 * @creat: 2022/7/21 14:05
 */
public class ExcelListenner extends AnalysisEventListener<DemoData> {

    /**
     * 读取内容
     * @param demoData
     * @param analysisContext
     */
    @Override
    public void invoke(DemoData demoData, AnalysisContext analysisContext) {
        System.out.println("data ===="+demoData);
    }

    /**
     * 读取表头
     * @param headMap
     * @param context
     */
    @Override
    public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) {
        System.out.println("head===="+headMap);
    }

    /**
     * 读取完的操作
     * @param analysisContext
     */
    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
